<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>病历管理 - 萌迹(Cute Trail Admin)后台管理系统</title>
<link rel="icon" href="petvet.ico" type="image/ico">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/materialdesignicons.min.css" rel="stylesheet">
<link href="css/style.min.css" rel="stylesheet">
</head>
  
<body>
<div class="container-fluid p-t-15">
 <style>
/* medical-records.css */
.medical-records-section {
  padding: 20px;
  background-color: #f5f7fa;
  min-height: 100vh;
}

.medical-records-section h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 24px;
}

.search-bar {
  display: flex;
  margin-bottom: 20px;
}

.search-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
}

.search-button {
  padding: 10px 20px;
  background-color: #409eff;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.filter-options {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.filter-label {
  margin-right: 10px;
  color: #666;
}

.filter-select {
  padding: 8px 12px;
  margin-right: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.pet-card {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  display: flex;
  transition: transform 0.3s;
}

.pet-card:hover {
  transform: translateY(-5px);
}

.pet-avatar {
  font-size: 48px;
  margin-right: 15px;
  align-self: center;
}

.pet-info {
  flex: 1;
}

.pet-info h4 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 18px;
}

.pet-meta {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;
  gap: 10px;
}

.meta-item {
  font-size: 14px;
  color: #666;
}

.pet-status {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 10px;
}

.last-visit {
  font-size: 13px;
  color: #888;
}

.tag {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.vaccine-complete {
  background-color: #e1f3d8;
  color: #67c23a;
}

.deworming-needed {
  background-color: #faecd8;
  color: #e6a23c;
}

.pet-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.view-btn {
  background-color: #409eff;
  color: white;
}

.edit-btn {
  background-color: #f0f0f0;
  color: #666;
}

.action-btn:hover {
  opacity: 0.9;
}
</style> 
 <!-- medical-records.html -->
 <div class="medical-records-section">
   <h2>病历管理</h2>
   <div class="search-bar">
     <input type="text" placeholder="搜索宠物姓名或主人..." class="search-input">
     <button class="search-button">搜索</button>
   </div>
   
   <div class="filter-options">
     <span class="filter-label">筛选条件:</span>
     <select class="filter-select">
       <option value="all">全部</option>
       <option value="dog">犬类</option>
       <option value="cat">猫类</option>
       <option value="other">其他</option>
     </select>
     <select class="filter-select">
       <option value="recent">最近就诊</option>
       <option value="vaccine">待接种</option>
       <option value="followup">已完成</option>
     </select>
   </div>
   
   <div class="card-container">
     <!-- 宠物病历卡片 - 示例1 -->
     <div class="pet-card">
       <div class="pet-avatar">🐶</div>
       <div class="pet-info">
         <h4>豆豆（泰迪）</h4>
         <div class="pet-meta">
           <span class="meta-item">主人: 王女士</span>
           <span class="meta-item">年龄: 3岁</span>
           <span class="meta-item">性别: 公</span>
         </div>
         <div class="pet-status">
           <span class="last-visit">最后就诊: 2023-10-05</span>
           <span class="tag vaccine-complete">疫苗完成</span>
         </div>
         <div class="pet-actions">
           <button class="action-btn view-btn">查看处方</button>
           <button class="action-btn edit-btn">编辑</button>
         </div>
       </div>
     </div>
     
     <!-- 宠物病历卡片 - 示例2 -->
     <div class="pet-card">
       <div class="pet-avatar">🐱</div>
       <div class="pet-info">
         <h4>球球（布偶猫）</h4>
         <div class="pet-meta">
           <span class="meta-item">主人: 张先生</span>
           <span class="meta-item">年龄: 2岁</span>
           <span class="meta-item">性别: 母</span>
         </div>
         <div class="pet-status">
           <span class="last-visit">最后就诊: 2023-10-01</span>
           <span class="tag deworming-needed">待驱虫</span>
         </div>
         <div class="pet-actions">
           <button class="action-btn view-btn">查看处方</button>
           <button class="action-btn edit-btn">编辑</button>
         </div>
       </div>
     </div>
   </div>
 </div>